package thread;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入时间");
      for (int num=scan.nextInt();num>0;num--){
          System.out.println(num);
          try {
              Thread .sleep(1000);
      }catch (InterruptedException e){
              e.printStackTrace();
          }


        }
        System.out.println("时间到");
    }
}
